import vue from 'vue'
import vuex from 'vuex'
import user from './user'
import menu from './menu'
import building from './building'
import createPersistedState from "vuex-persistedstate"
vue.use(vuex)
const store = new vuex.Store({
    modules:  {
        menu,
        user,
        building
    },
    plugins: [createPersistedState()]
})
export default store